<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" href="../../css/main.css" />
    <script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.min.js"></script>
    <style>
    </style>
</head>

<body>
    <div v-cloak id="menuFour">
        <section style="background: #fff">
            <div class="hot-title">
                <i class="aui-iconfont aui-icon-like"></i>热门推荐
            </div>
            <div class="list-box" v-for="(item, index) in dataList" :key="index">
                <div class="list-box-top">
                    <div class="list-box-top-left">
                        <img :src="item.imgUrl">
                        <div class="list-box-top-left-text">
                            <p>{{item.name}}</p>
                            <ul>
                                <li v-for="(items, indexp) in item.label" :key="index">{{items}}</li>
                            </ul>
                        </div>
                    </div>
                    <div class="list-box-top-right" @click="getMoney">点我拿钱</div>
                </div>
                <div class="list-box-bottom">
                    <ul>
                        <li class="list-one">
                            <span>额度(元)</span>
                            <p>{{item.lines}}</p>
                        </li>
                        <li class="list-two">
                            <span>成功率</span>
                            <p>{{item.successRate}}</p>
                        </li>
                        <li class="list-two">
                            <span>日费率</span>
                            <p>{{item.interest}}</p>
                        </li>
                    </ul>
                </div>
            </div>
        </section>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
apiready = function() {
    var vm = new Vue({
        el: '#menuFour',
        data: {
            dataList: [{
                    imgUrl: '../../image/list1.png',
                    name: '369贷款',
                    label: [
                        '流程简单',
                        '极速申请',
                        '超高通过'
                    ],
                    lines: '2000-5000',
                    successRate: '99%',
                    interest: '0.05%'
                },
                {
                    imgUrl: '../../image/list1.png',
                    name: '贷熊钱包',
                    label: [
                        '上班族',
                        '下款快'
                    ],
                    lines: '500-10000',
                    successRate: '97%',
                    interest: '0.07%'
                },
                {
                    imgUrl: '../../image/list1.png',
                    name: '贷熊钱包',
                    label: [
                        '足不出户',
                        '立即拿钱'
                    ],
                    lines: '5000-10000',
                    successRate: '97%',
                    interest: '0.06%'
                }
            ]
        },
        methods: {
            wait: function() {
                api.setRefreshHeaderInfo({
                    visible: true,
                    // loadingImg: '../image/timg.gif', 
                    bgColor: '#fafafa',
                    textColor: '#323232',
                    textDown: '下拉刷新...',
                    textUp: '松开立即刷新...',
                    showTime: true
                }, function(ret, err) {
                    setTimeout('api.refreshHeaderLoadDone()', '500');
                })
            },
            getMoney: function() {
                $api.isDownload()
            }
        },
        created: function() {
            this.wait()
        },
        mounted: function() {}
    })
};
</script>

</html>